package com.bank.backend.boot.server.converter;

import com.bank.backend.boot.base.model.dto.BankOpRelieveDTO;
import com.bank.backend.boot.base.model.dto.BankOperationDTO;
import com.bank.backend.boot.base.model.entity.BankOperation;
import com.bank.backend.boot.base.model.vo.BankOperationVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author jiaowei
 * @since 2025/4/26 21:58
 */
@Mapper(componentModel = "spring")
public interface BankOperationConverter {
    BankOperationConverter INSTANCE = Mappers.getMapper(BankOperationConverter.class);

    BankOperationVO converter(BankOperation bankOperation);

    BankOperation converter(BankOperationDTO bankOperationDTO);

    BankOperation converter(BankOpRelieveDTO bankOpRelieveDTO);

    List<BankOperationVO> converter(List<BankOperation> bankOperations);

    Page<BankOperationVO> converter(Page<BankOperation> bankOperations);


}
